<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 两个等号只看值，===看类型
        // let aa = 10;
        // let bb = "10";
        // console.log("aaa==bb：" + (aa == bb));
        // console.log("aa===bb：" + (aa === bb));
        //数组定义
        // let array = [];
        // let array2 = [10, "a", true];
        // console.log(array2[0]);
        // console.log(array2.length);
        // console.log(array2[200]);


        // array2[3] = "bbb";
        // console.log(array2.length);
        // array2[100] = "b";
        // console.log(array2);

        // array2.splice(0, 2);
        // console.log(array2);
        // array2[-1] = "ccc";
        // array2["中文"] = "ddd";
        // //函数定义
        // sum("10")
        // function sum(x, y) {
        //     console.log(x + y);

        // }
        let sum = function (x, y) {
            console.log(x + y);

        }
        sum(10, 20);



    </script>
</body>

</html>